import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 导入模块
import cart from './modules/cart'
import user from './modules/user'

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
    fn () {
      console.log('index里的fn')
    }
  },
  actions: {
  },
  modules: {
    cart,
    user
  }
})
